package com.hj.dapp.business.craft.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/22
 */
@Data
public class Craft {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Long unit;
    private String unitName;
    private String illustrate;
    private BigDecimal salePrice;
    private BigDecimal costPrice;
    private BigDecimal rate;
    private Integer billingMethod;
    private String createBy;
    private LocalDateTime createTime;
    private String lastUpdateBy;
    private LocalDateTime lastUpdateTime;

    private Integer illustrateType;
    @TableField(exist = false)
    private BigDecimal num;
    private BigDecimal materialCost;

    private BigDecimal manCost;


}
